<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>zippy.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="closure_goog_ui_zippy.js.html">zippy.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Copyright 2006 The Closure Library Authors. All Rights Reserved.
<a name="line2"></a>//
<a name="line3"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line4"></a>// you may not use this file except in compliance with the License.
<a name="line5"></a>// You may obtain a copy of the License at
<a name="line6"></a>//
<a name="line7"></a>//      http://www.apache.org/licenses/LICENSE-2.0
<a name="line8"></a>//
<a name="line9"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line10"></a>// distributed under the License is distributed on an &quot;AS-IS&quot; BASIS,
<a name="line11"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line12"></a>// See the License for the specific language governing permissions and
<a name="line13"></a>// limitations under the License.
<a name="line14"></a>
<a name="line15"></a>/**
<a name="line16"></a> * @fileoverview Zippy widget implementation.
<a name="line17"></a> *
<a name="line18"></a> * @author eae@google.com (Emil A Eklund)
<a name="line19"></a> * @see ../demos/zippy.html
<a name="line20"></a> */
<a name="line21"></a>
<a name="line22"></a>goog.provide(&#39;goog.ui.Zippy&#39;);
<a name="line23"></a>goog.provide(&#39;goog.ui.Zippy.Events&#39;);
<a name="line24"></a>goog.provide(&#39;goog.ui.ZippyEvent&#39;);
<a name="line25"></a>
<a name="line26"></a>goog.require(&#39;goog.a11y.aria&#39;);
<a name="line27"></a>goog.require(&#39;goog.a11y.aria.Role&#39;);
<a name="line28"></a>goog.require(&#39;goog.a11y.aria.State&#39;);
<a name="line29"></a>goog.require(&#39;goog.dom&#39;);
<a name="line30"></a>goog.require(&#39;goog.dom.classes&#39;);
<a name="line31"></a>goog.require(&#39;goog.events&#39;);
<a name="line32"></a>goog.require(&#39;goog.events.Event&#39;);
<a name="line33"></a>goog.require(&#39;goog.events.EventHandler&#39;);
<a name="line34"></a>goog.require(&#39;goog.events.EventTarget&#39;);
<a name="line35"></a>goog.require(&#39;goog.events.EventType&#39;);
<a name="line36"></a>goog.require(&#39;goog.events.KeyCodes&#39;);
<a name="line37"></a>goog.require(&#39;goog.style&#39;);
<a name="line38"></a>
<a name="line39"></a>
<a name="line40"></a>
<a name="line41"></a>/**
<a name="line42"></a> * Zippy widget. Expandable/collapsible container, clicking the header toggles
<a name="line43"></a> * the visibility of the content.
<a name="line44"></a> *
<a name="line45"></a> * @extends {goog.events.EventTarget}
<a name="line46"></a> * @param {Element|string|null} header Header element, either element
<a name="line47"></a> *     reference, string id or null if no header exists.
<a name="line48"></a> * @param {Element|string|function():Element=} opt_content Content element
<a name="line49"></a> *     (if any), either element reference or string id.  If skipped, the caller
<a name="line50"></a> *     should handle the TOGGLE event in its own way. If a function is passed,
<a name="line51"></a> *     then if will be called to create the content element the first time the
<a name="line52"></a> *     zippy is expanded.
<a name="line53"></a> * @param {boolean=} opt_expanded Initial expanded/visibility state. Defaults to
<a name="line54"></a> *     false.
<a name="line55"></a> * @param {Element|string=} opt_expandedHeader Element to use as the header when
<a name="line56"></a> *     the zippy is expanded.
<a name="line57"></a> * @param {goog.dom.DomHelper=} opt_domHelper An optional DOM helper.
<a name="line58"></a> * @constructor
<a name="line59"></a> */
<a name="line60"></a>goog.ui.Zippy = function(header, opt_content, opt_expanded,
<a name="line61"></a>    opt_expandedHeader, opt_domHelper) {
<a name="line62"></a>  goog.base(this);
<a name="line63"></a>
<a name="line64"></a>  /**
<a name="line65"></a>   * DomHelper used to interact with the document, allowing components to be
<a name="line66"></a>   * created in a different window.
<a name="line67"></a>   * @type {!goog.dom.DomHelper}
<a name="line68"></a>   * @private
<a name="line69"></a>   */
<a name="line70"></a>  this.dom_ = opt_domHelper || goog.dom.getDomHelper();
<a name="line71"></a>
<a name="line72"></a>  /**
<a name="line73"></a>   * Header element or null if no header exists.
<a name="line74"></a>   * @type {Element}
<a name="line75"></a>   * @private
<a name="line76"></a>   */
<a name="line77"></a>  this.elHeader_ = this.dom_.getElement(header) || null;
<a name="line78"></a>
<a name="line79"></a>  /**
<a name="line80"></a>   * When present, the header to use when the zippy is expanded.
<a name="line81"></a>   * @type {Element}
<a name="line82"></a>   * @private
<a name="line83"></a>   */
<a name="line84"></a>  this.elExpandedHeader_ = this.dom_.getElement(opt_expandedHeader || null);
<a name="line85"></a>
<a name="line86"></a>  /**
<a name="line87"></a>   * Function that will create the content element, or false if there is no such
<a name="line88"></a>   * function.
<a name="line89"></a>   * @type {?function():Element}
<a name="line90"></a>   * @private
<a name="line91"></a>   */
<a name="line92"></a>  this.lazyCreateFunc_ = goog.isFunction(opt_content) ? opt_content : null;
<a name="line93"></a>
<a name="line94"></a>  /**
<a name="line95"></a>   * Content element.
<a name="line96"></a>   * @type {Element}
<a name="line97"></a>   * @private
<a name="line98"></a>   */
<a name="line99"></a>  this.elContent_ = this.lazyCreateFunc_ || !opt_content ? null :
<a name="line100"></a>      this.dom_.getElement(/** @type {Element} */ (opt_content));
<a name="line101"></a>
<a name="line102"></a>  /**
<a name="line103"></a>   * Expanded state.
<a name="line104"></a>   * @type {boolean}
<a name="line105"></a>   * @private
<a name="line106"></a>   */
<a name="line107"></a>  this.expanded_ = opt_expanded == true;
<a name="line108"></a>
<a name="line109"></a>  /**
<a name="line110"></a>   * A keyboard events handler. If there are two headers it is shared for both.
<a name="line111"></a>   * @type {goog.events.EventHandler}
<a name="line112"></a>   * @private
<a name="line113"></a>   */
<a name="line114"></a>  this.keyboardEventHandler_ = new goog.events.EventHandler(this);
<a name="line115"></a>
<a name="line116"></a>  /**
<a name="line117"></a>   * A mouse events handler. If there are two headers it is shared for both.
<a name="line118"></a>   * @type {goog.events.EventHandler}
<a name="line119"></a>   * @private
<a name="line120"></a>   */
<a name="line121"></a>  this.mouseEventHandler_ = new goog.events.EventHandler(this);
<a name="line122"></a>
<a name="line123"></a>  var self = this;
<a name="line124"></a>  function addHeaderEvents(el) {
<a name="line125"></a>    if (el) {
<a name="line126"></a>      el.tabIndex = 0;
<a name="line127"></a>      goog.a11y.aria.setRole(el, self.getAriaRole());
<a name="line128"></a>      goog.dom.classes.add(el, goog.getCssName(&#39;goog-zippy-header&#39;));
<a name="line129"></a>      self.enableMouseEventsHandling_(el);
<a name="line130"></a>      self.enableKeyboardEventsHandling_(el);
<a name="line131"></a>    }
<a name="line132"></a>  }
<a name="line133"></a>  addHeaderEvents(this.elHeader_);
<a name="line134"></a>  addHeaderEvents(this.elExpandedHeader_);
<a name="line135"></a>
<a name="line136"></a>  // initialize based on expanded state
<a name="line137"></a>  this.setExpanded(this.expanded_);
<a name="line138"></a>};
<a name="line139"></a>goog.inherits(goog.ui.Zippy, goog.events.EventTarget);
<a name="line140"></a>
<a name="line141"></a>
<a name="line142"></a>/**
<a name="line143"></a> * Constants for event names
<a name="line144"></a> *
<a name="line145"></a> * @type {Object}
<a name="line146"></a> */
<a name="line147"></a>goog.ui.Zippy.Events = {
<a name="line148"></a>  // Zippy will dispatch an ACTION event for user interaction. Mimics
<a name="line149"></a>  // {@code goog.ui.Controls#performActionInternal} by first changing
<a name="line150"></a>  // the toggle state and then dispatching an ACTION event.
<a name="line151"></a>  ACTION: &#39;action&#39;,
<a name="line152"></a>  // Zippy state is toggled from collapsed to expanded or vice versa.
<a name="line153"></a>  TOGGLE: &#39;toggle&#39;
<a name="line154"></a>};
<a name="line155"></a>
<a name="line156"></a>
<a name="line157"></a>/**
<a name="line158"></a> * Whether to listen for and handle mouse events; defaults to true.
<a name="line159"></a> * @type {boolean}
<a name="line160"></a> * @private
<a name="line161"></a> */
<a name="line162"></a>goog.ui.Zippy.prototype.handleMouseEvents_ = true;
<a name="line163"></a>
<a name="line164"></a>
<a name="line165"></a>/**
<a name="line166"></a> * Whether to listen for and handle key events; defaults to true.
<a name="line167"></a> * @type {boolean}
<a name="line168"></a> * @private
<a name="line169"></a> */
<a name="line170"></a>goog.ui.Zippy.prototype.handleKeyEvents_ = true;
<a name="line171"></a>
<a name="line172"></a>
<a name="line173"></a>/** @override */
<a name="line174"></a>goog.ui.Zippy.prototype.disposeInternal = function() {
<a name="line175"></a>  goog.base(this, &#39;disposeInternal&#39;);
<a name="line176"></a>  goog.dispose(this.keyboardEventHandler_);
<a name="line177"></a>  goog.dispose(this.mouseEventHandler_);
<a name="line178"></a>};
<a name="line179"></a>
<a name="line180"></a>
<a name="line181"></a>/**
<a name="line182"></a> * @return {goog.a11y.aria.Role} The ARIA role to be applied to Zippy element.
<a name="line183"></a> */
<a name="line184"></a>goog.ui.Zippy.prototype.getAriaRole = function() {
<a name="line185"></a>  return goog.a11y.aria.Role.TAB;
<a name="line186"></a>};
<a name="line187"></a>
<a name="line188"></a>
<a name="line189"></a>/**
<a name="line190"></a> * @return {Element} The content element.
<a name="line191"></a> */
<a name="line192"></a>goog.ui.Zippy.prototype.getContentElement = function() {
<a name="line193"></a>  return this.elContent_;
<a name="line194"></a>};
<a name="line195"></a>
<a name="line196"></a>
<a name="line197"></a>/**
<a name="line198"></a> * @return {Element} The visible header element.
<a name="line199"></a> */
<a name="line200"></a>goog.ui.Zippy.prototype.getVisibleHeaderElement = function() {
<a name="line201"></a>  var expandedHeader = this.elExpandedHeader_;
<a name="line202"></a>  return expandedHeader &amp;&amp; goog.style.isElementShown(expandedHeader) ?
<a name="line203"></a>      expandedHeader : this.elHeader_;
<a name="line204"></a>};
<a name="line205"></a>
<a name="line206"></a>
<a name="line207"></a>/**
<a name="line208"></a> * Expands content pane.
<a name="line209"></a> */
<a name="line210"></a>goog.ui.Zippy.prototype.expand = function() {
<a name="line211"></a>  this.setExpanded(true);
<a name="line212"></a>};
<a name="line213"></a>
<a name="line214"></a>
<a name="line215"></a>/**
<a name="line216"></a> * Collapses content pane.
<a name="line217"></a> */
<a name="line218"></a>goog.ui.Zippy.prototype.collapse = function() {
<a name="line219"></a>  this.setExpanded(false);
<a name="line220"></a>};
<a name="line221"></a>
<a name="line222"></a>
<a name="line223"></a>/**
<a name="line224"></a> * Toggles expanded state.
<a name="line225"></a> */
<a name="line226"></a>goog.ui.Zippy.prototype.toggle = function() {
<a name="line227"></a>  this.setExpanded(!this.expanded_);
<a name="line228"></a>};
<a name="line229"></a>
<a name="line230"></a>
<a name="line231"></a>/**
<a name="line232"></a> * Sets expanded state.
<a name="line233"></a> *
<a name="line234"></a> * @param {boolean} expanded Expanded/visibility state.
<a name="line235"></a> */
<a name="line236"></a>goog.ui.Zippy.prototype.setExpanded = function(expanded) {
<a name="line237"></a>  if (this.elContent_) {
<a name="line238"></a>    // Hide the element, if one is provided.
<a name="line239"></a>    goog.style.showElement(this.elContent_, expanded);
<a name="line240"></a>  } else if (expanded &amp;&amp; this.lazyCreateFunc_) {
<a name="line241"></a>    // Assume that when the element is not hidden upon creation.
<a name="line242"></a>    this.elContent_ = this.lazyCreateFunc_();
<a name="line243"></a>  }
<a name="line244"></a>  if (this.elContent_) {
<a name="line245"></a>    goog.dom.classes.add(this.elContent_,
<a name="line246"></a>        goog.getCssName(&#39;goog-zippy-content&#39;));
<a name="line247"></a>  }
<a name="line248"></a>
<a name="line249"></a>  if (this.elExpandedHeader_) {
<a name="line250"></a>    // Hide the show header and show the hide one.
<a name="line251"></a>    goog.style.showElement(this.elHeader_, !expanded);
<a name="line252"></a>    goog.style.showElement(this.elExpandedHeader_, expanded);
<a name="line253"></a>  } else {
<a name="line254"></a>    // Update header image, if any.
<a name="line255"></a>    this.updateHeaderClassName(expanded);
<a name="line256"></a>  }
<a name="line257"></a>
<a name="line258"></a>  this.setExpandedInternal(expanded);
<a name="line259"></a>
<a name="line260"></a>  // Fire toggle event
<a name="line261"></a>  this.dispatchEvent(new goog.ui.ZippyEvent(goog.ui.Zippy.Events.TOGGLE,
<a name="line262"></a>                                            this, this.expanded_));
<a name="line263"></a>};
<a name="line264"></a>
<a name="line265"></a>
<a name="line266"></a>/**
<a name="line267"></a> * Sets expanded internal state.
<a name="line268"></a> *
<a name="line269"></a> * @param {boolean} expanded Expanded/visibility state.
<a name="line270"></a> * @protected
<a name="line271"></a> */
<a name="line272"></a>goog.ui.Zippy.prototype.setExpandedInternal = function(expanded) {
<a name="line273"></a>  this.expanded_ = expanded;
<a name="line274"></a>};
<a name="line275"></a>
<a name="line276"></a>
<a name="line277"></a>/**
<a name="line278"></a> * @return {boolean} Whether the zippy is expanded.
<a name="line279"></a> */
<a name="line280"></a>goog.ui.Zippy.prototype.isExpanded = function() {
<a name="line281"></a>  return this.expanded_;
<a name="line282"></a>};
<a name="line283"></a>
<a name="line284"></a>
<a name="line285"></a>/**
<a name="line286"></a> * Updates the header element&#39;s className and ARIA (accessibility) EXPANDED
<a name="line287"></a> * state.
<a name="line288"></a> *
<a name="line289"></a> * @param {boolean} expanded Expanded/visibility state.
<a name="line290"></a> * @protected
<a name="line291"></a> */
<a name="line292"></a>goog.ui.Zippy.prototype.updateHeaderClassName = function(expanded) {
<a name="line293"></a>  if (this.elHeader_) {
<a name="line294"></a>    goog.dom.classes.enable(this.elHeader_,
<a name="line295"></a>        goog.getCssName(&#39;goog-zippy-expanded&#39;), expanded);
<a name="line296"></a>    goog.dom.classes.enable(this.elHeader_,
<a name="line297"></a>        goog.getCssName(&#39;goog-zippy-collapsed&#39;), !expanded);
<a name="line298"></a>    goog.a11y.aria.setState(this.elHeader_,
<a name="line299"></a>        goog.a11y.aria.State.EXPANDED,
<a name="line300"></a>        expanded);
<a name="line301"></a>  }
<a name="line302"></a>};
<a name="line303"></a>
<a name="line304"></a>
<a name="line305"></a>/**
<a name="line306"></a> * @return {boolean} Whether the Zippy handles its own key events.
<a name="line307"></a> */
<a name="line308"></a>goog.ui.Zippy.prototype.isHandleKeyEvents = function() {
<a name="line309"></a>  return this.handleKeyEvents_;
<a name="line310"></a>};
<a name="line311"></a>
<a name="line312"></a>
<a name="line313"></a>/**
<a name="line314"></a> * @return {boolean} Whether the Zippy handles its own mouse events.
<a name="line315"></a> */
<a name="line316"></a>goog.ui.Zippy.prototype.isHandleMouseEvents = function() {
<a name="line317"></a>  return this.handleMouseEvents_;
<a name="line318"></a>};
<a name="line319"></a>
<a name="line320"></a>
<a name="line321"></a>/**
<a name="line322"></a> * Sets whether the Zippy handles it&#39;s own keyboard events.
<a name="line323"></a> * @param {boolean} enable Whether the Zippy handles keyboard events.
<a name="line324"></a> */
<a name="line325"></a>goog.ui.Zippy.prototype.setHandleKeyboardEvents = function(enable) {
<a name="line326"></a>  if (this.handleKeyEvents_ != enable) {
<a name="line327"></a>    this.handleKeyEvents_ = enable;
<a name="line328"></a>    if (enable) {
<a name="line329"></a>      this.enableKeyboardEventsHandling_(this.elHeader_);
<a name="line330"></a>      this.enableKeyboardEventsHandling_(this.elExpandedHeader_);
<a name="line331"></a>    } else {
<a name="line332"></a>      this.keyboardEventHandler_.removeAll();
<a name="line333"></a>    }
<a name="line334"></a>  }
<a name="line335"></a>};
<a name="line336"></a>
<a name="line337"></a>
<a name="line338"></a>/**
<a name="line339"></a> * Sets whether the Zippy handles it&#39;s own mouse events.
<a name="line340"></a> * @param {boolean} enable Whether the Zippy handles mouse events.
<a name="line341"></a> */
<a name="line342"></a>goog.ui.Zippy.prototype.setHandleMouseEvents = function(enable) {
<a name="line343"></a>  if (this.handleMouseEvents_ != enable) {
<a name="line344"></a>    this.handleMouseEvents_ = enable;
<a name="line345"></a>    if (enable) {
<a name="line346"></a>      this.enableMouseEventsHandling_(this.elHeader_);
<a name="line347"></a>      this.enableMouseEventsHandling_(this.elExpandedHeader_);
<a name="line348"></a>    } else {
<a name="line349"></a>      this.mouseEventHandler_.removeAll();
<a name="line350"></a>    }
<a name="line351"></a>  }
<a name="line352"></a>};
<a name="line353"></a>
<a name="line354"></a>
<a name="line355"></a>/**
<a name="line356"></a> * Enables keyboard events handling for the passed header element.
<a name="line357"></a> * @param {Element} header The header element.
<a name="line358"></a> * @private
<a name="line359"></a> */
<a name="line360"></a>goog.ui.Zippy.prototype.enableKeyboardEventsHandling_ = function(header) {
<a name="line361"></a>  if (header) {
<a name="line362"></a>    this.keyboardEventHandler_.listen(header, goog.events.EventType.KEYDOWN,
<a name="line363"></a>        this.onHeaderKeyDown_);
<a name="line364"></a>  }
<a name="line365"></a>};
<a name="line366"></a>
<a name="line367"></a>
<a name="line368"></a>/**
<a name="line369"></a> * Enables mouse events handling for the passed header element.
<a name="line370"></a> * @param {Element} header The header element.
<a name="line371"></a> * @private
<a name="line372"></a> */
<a name="line373"></a>goog.ui.Zippy.prototype.enableMouseEventsHandling_ = function(header) {
<a name="line374"></a>  if (header) {
<a name="line375"></a>    this.mouseEventHandler_.listen(header, goog.events.EventType.CLICK,
<a name="line376"></a>        this.onHeaderClick_);
<a name="line377"></a>  }
<a name="line378"></a>};
<a name="line379"></a>
<a name="line380"></a>
<a name="line381"></a>/**
<a name="line382"></a> * KeyDown event handler for header element. Enter and space toggles expanded
<a name="line383"></a> * state.
<a name="line384"></a> *
<a name="line385"></a> * @param {goog.events.BrowserEvent} event KeyDown event.
<a name="line386"></a> * @private
<a name="line387"></a> */
<a name="line388"></a>goog.ui.Zippy.prototype.onHeaderKeyDown_ = function(event) {
<a name="line389"></a>  if (event.keyCode == goog.events.KeyCodes.ENTER ||
<a name="line390"></a>      event.keyCode == goog.events.KeyCodes.SPACE) {
<a name="line391"></a>
<a name="line392"></a>    this.toggle();
<a name="line393"></a>    this.dispatchActionEvent_();
<a name="line394"></a>
<a name="line395"></a>    // Prevent enter key from submitting form.
<a name="line396"></a>    event.preventDefault();
<a name="line397"></a>
<a name="line398"></a>    event.stopPropagation();
<a name="line399"></a>  }
<a name="line400"></a>};
<a name="line401"></a>
<a name="line402"></a>
<a name="line403"></a>/**
<a name="line404"></a> * Click event handler for header element.
<a name="line405"></a> *
<a name="line406"></a> * @param {goog.events.BrowserEvent} event Click event.
<a name="line407"></a> * @private
<a name="line408"></a> */
<a name="line409"></a>goog.ui.Zippy.prototype.onHeaderClick_ = function(event) {
<a name="line410"></a>  this.toggle();
<a name="line411"></a>  this.dispatchActionEvent_();
<a name="line412"></a>};
<a name="line413"></a>
<a name="line414"></a>
<a name="line415"></a>/**
<a name="line416"></a> * Dispatch an ACTION event whenever there is user interaction with the header.
<a name="line417"></a> * Please note that after the zippy state change is completed a TOGGLE event
<a name="line418"></a> * will be dispatched. However, the TOGGLE event is dispatch on every toggle,
<a name="line419"></a> * including programmatic call to {@code #toggle}.
<a name="line420"></a> * @private
<a name="line421"></a> */
<a name="line422"></a>goog.ui.Zippy.prototype.dispatchActionEvent_ = function() {
<a name="line423"></a>  this.dispatchEvent(new goog.events.Event(goog.ui.Zippy.Events.ACTION, this));
<a name="line424"></a>};
<a name="line425"></a>
<a name="line426"></a>
<a name="line427"></a>
<a name="line428"></a>/**
<a name="line429"></a> * Object representing a zippy toggle event.
<a name="line430"></a> *
<a name="line431"></a> * @param {string} type Event type.
<a name="line432"></a> * @param {goog.ui.Zippy} target Zippy widget initiating event.
<a name="line433"></a> * @param {boolean} expanded Expanded state.
<a name="line434"></a> * @extends {goog.events.Event}
<a name="line435"></a> * @constructor
<a name="line436"></a> */
<a name="line437"></a>goog.ui.ZippyEvent = function(type, target, expanded) {
<a name="line438"></a>  goog.base(this, type, target);
<a name="line439"></a>
<a name="line440"></a>  /**
<a name="line441"></a>   * The expanded state.
<a name="line442"></a>   * @type {boolean}
<a name="line443"></a>   */
<a name="line444"></a>  this.expanded = expanded;
<a name="line445"></a>};
<a name="line446"></a>goog.inherits(goog.ui.ZippyEvent, goog.events.Event);
</pre>


</body>
</html>
